﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WFinger.Web.manage.label
{
	public partial class createLabel_Special : WFinger.Web.UI.ManagePage
	{
		public string APIID = "0";
		WFinger.CMS.Label rd = new WFinger.CMS.Label();
		protected void Page_Load(object sender, EventArgs e)
		{
			APIID = SiteID;
			if (!IsPostBack)
			{

				string _dirdumm = WFinger.Config.UIConfig.dirDumm;
				if (_dirdumm.Trim() != "") { _dirdumm = "/" + _dirdumm; }
				style_class.InnerHtml = WFinger.Common.Public.getxmlstylelist("styleContent2", _dirdumm + "/xml/cuslabeStyle/cstylespecial.xml");
				GetStyleList(this.StyleClassID); ;
			}
		}
		protected void GetStyleList(DropDownList lst)
		{
			IDataReader dr = rd.GetStyleList(SiteID);
			while (dr.Read())
			{
				ListItem it = new ListItem();
				it.Value = dr["ClassID"].ToString();
				it.Text = dr["Sname"].ToString();
				lst.Items.Add(it);
			}
			dr.Close();
		}
	}
}
